package com.zzyl.service;

import com.aliyun.iot20180120.models.QueryDevicePropertyStatusResponse;
import com.aliyun.iot20180120.models.QueryThingModelPublishedResponse;
import com.zzyl.base.PageResponse;
import com.zzyl.dto.DeviceDto;
import com.zzyl.dto.DevicePageQueryDto;
import com.zzyl.vo.DeviceDataGraphVo;
import com.zzyl.vo.DeviceVo;
import com.zzyl.vo.ProductVo;

import java.util.List;

public interface DeviceService {
    void syncProductList();

    List<ProductVo> allProduct();

    void insert(DeviceDto deviceDto);

    PageResponse pageQueryDevice(DevicePageQueryDto devicePageQueryDto);

    DeviceVo queryDeviceDetail(DeviceDto deviceDto);

    QueryDevicePropertyStatusResponse queryDevicePropertyStatus(DeviceDto deviceDto);

    QueryThingModelPublishedResponse queryThingModelPublished(DeviceDto deviceDto);

    void updateDevice(DeviceDto deviceDto);

    void deleteDevice(DeviceDto deviceDto);

    List<DeviceDataGraphVo> queryDeviceDataListByDay(String iotId, String functionId, Long startTime, Long endTime);

    List<DeviceDataGraphVo> queryDeviceDataListByWeek(String iotId, String functionId, Long startTime, Long endTime);
}
